package lab02.test19;

public class Test {

    public static void main(String[] args) {

        String result = "HelloWord";
        System.out.println("字符串长度" + result.length());
        char tmp;
        int i;
        for ( i = result.length()-1;i >= 0;i--){

            tmp = result.charAt( i );
            if ( tmp >= 'A'&& tmp <= 'Z'){
                tmp+=32;

                System.out.print(tmp );
            }
            else if ( tmp <= 'z'&& tmp >= 'a'){
                tmp-=32;

                System.out.print( tmp );
            }
        }
    }
}
